package me.leon.plugin

open class Versions {
    val kotlin = "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    val appcompat = "androidx.appcompat:appcompat:$appcompat_version"
    val leakcanary = "com.squareup.leakcanary:leakcanary-android:$leakCanary_version"
    val material = "com.google.android.material:material:$material_version"
    val constraintlayout = "androidx.constraintlayout:constraintlayout:$constraintlayout_version"
    val recyclerview = "androidx.recyclerview:recyclerview:$recyclerview_version"
    val swiperefreshlayout =
        "androidx.swiperefreshlayout:swiperefreshlayout:$swiperefreshlayout_version"
    val ktx = "androidx.core:core-ktx:$ktx_version"
    val coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"

    val baseDep = arrayOf(kotlin, appcompat, constraintlayout, material)
    val quickDep = baseDep
    val rxDep = arrayOf(Rx.android, Rx.java, Rx.permission)
    val rx = Rx
    val build = Build
    val lifecycle = LifeCycle
    //androidx.activity:activity 包含的lifecycle
    val lifecycleSuit =
        arrayOf(LifeCycle.runtime, LifeCycle.viewmodel, LifeCycle.livedata, LifeCycle.saveState)

    companion object {
        const val appcompat_version = "1.4.0"
        const val kotlin_version = "1.6.10"
        const val ktx_version = "1.7.0"
        const val recyclerview_version = "1.2.1"
        const val swiperefreshlayout_version = "1.1.0"
        const val leakCanary_version = "2.7"
        const val material_version = "1.4.0"
        const val constraintlayout_version = "2.1.2"
        const val coroutines_version = "1.5.2"
    }
}